package com.xz.realdemo.builder;

/**
 * @author 张志航     
 * @version V1.0.0
 * @projectName design_mode
 * @title     ServerComputerBuilder   
 * @package    com.xz.realdemo.builder  
 * @date   2019/11/28 19:48  
 * @explain
 */
public class ServerComputerBuilder extends ComputerBuilder {

    @Override
    void buildCpu() {
        computer.setCpu("服务器cpu");
    }

    @Override
    void buildInternal() {
        computer.setInternal("服务器内存");
    }

    @Override
    void buildDisk() {
        computer.setDisk("服务器硬盘");
    }

    @Override
    void buildEngine() {
        computer.setEngine("服务器主机");
    }

    @Override
    void buildDisplay() {
        computer.setDisplay("服务器显示器");
    }

    // 服务器不要显示器
    @Override
    public boolean havaDisplay() {
        return false;
    }
}
